#include<stdio.h>
int cuboid_S(int a, int b, int c) {
	int S;
	S = 2 * (a * b + b * c + c * a);
	return S;
}
int cuboid_V(int a, int b, int c) {
	int V;
	V = b*c * a;
	return V;
}
int main() {
	int a, b, c;
	scanf_s("%d %d %d", &a, &b, &c);
	int S = cuboid_S(a, b, c);
	int V = cuboid_V(a, b, c);
	printf("S=%d,V=%d", S,V);
}